<?
include("inc_security.php");

$lang_id		= getValue("lang_id", "int", "SESSION", 0);
$title		= "FinalStyle - Admin Control Panel";
$userlogin	= $_SESSION["userlogin"];
?>
<html>
<head>
<title><?=$title?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css" media="all">@import "../css/FSportal.css";</style>
</head>
<body bgcolor="#CCCCCC">
<table width="100%" height="60" cellpadding="0" cellspacing="0" bgcolor="#F2F2F2">
	<tr>
		<td><font class="text_welcome">Bạn đăng nhập với tài khoản: </font><font class="userlogin"><?=$userlogin?></font></td>
		<td rowspan="2" class="title_page"><?=$title?></td>
	</tr>
	<tr>
		<td>
		<?
		$db_lang = new db_query("SELECT * FROM languages ORDER BY lang_id ASC");
		if(mysql_num_rows($db_lang->result) > 1){
		?>
			<select name="lang_id" class="form_control" onChange="parent.location.href='change_language.php?lang_id=' + this.value">
			<? while($row = mysql_fetch_assoc($db_lang->result)){?>
				<option value="<?=$row["lang_id"]?>"<? if($lang_id == $row["lang_id"]) echo ' selected="selected"';?>><?=$row["lang_name"]?></option>
			<? }?>
			</select>
		<?
		}// End if(mysql_num_rows($db_lang->result) > 0)
		$db_lang->close();
		unset($db_lang);
		?>
			<img align="absmiddle" hspace="5" src="<?=$fs_imagepath?>edit.gif" border="0" /><a class="change_profile" href="../admin_profile/admin_profile.php" target="workFrame">Thông tin cá nhân</a>
			<img align="absmiddle" hspace="5" src="<?=$fs_imagepath?>logoff.gif" border="0" /><a class="log_off" href="../login/logout.php" target="workFrame">Thoát</a>
		</td>
	</tr>
</table>
</body>
</html>